<%@ page import="java.sql.Connection" %>
<%@ page import="java.sql.DriverManager" %>
<%@ page import="java.sql.SQLException" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/6/4
  Time: 10:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>


    <title>Student</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <link href="assets/css/lib/bootstrap.min.css" rel="stylesheet">
    <link href="assets/css/lib/bootstrap-responsive.min.css" rel="stylesheet">
    <link href="assets/css/custom.css" rel="stylesheet">
    <!--[if lt IE 9]>
    <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->


    <script src="Scripts/jquery-1.10.2.js"></script>
    <link href="Content/bootstrap/bootstrap.min.css" rel="stylesheet">
    <script src="Content/bootstrap/bootstrap.min.js"></script>
    <link rel="stylesheet" href="../bootstrap-table-1.11.1/dist/bootstrap-table.css">
    <script src="../bootstrap-table-1.11.1/dist/bootstrap-table.js"></script>
    <script src="../bootstrap-table-1.11.1/dist/locale/bootstrap-table-zh-CN.js"></script>



    <script src="Content/bootstrap/bootstrap.js"></script>
    <link href="Content/bootstrap/bootstrap.css" rel="stylesheet" />

    <script src="Content/bootstrap-table/bootstrap-table.js"></script>
    <link href="Content/bootstrap-table/bootstrap-table.css" rel="stylesheet" />
    <script type="text/javascript">
        function selecta()
        {
            document.myform.action="SelectStudentServlet"
            document.myform.method="post"
        }
        function insert()
        {
            document.myform.action="InsertStudentServlet"
            document.myform.method="post"
        }
    </script>
</head>

<body>




<div class="navbar navbar-fixed-top">
    <div class="navbar-inner">
        <div class="container">
            <a class="brand" href="#">学生信息管理</a>
        </div>
    </div>
</div>
<div  class="container">
    <div class="row clearfix">
        <!-- Building Form. -->
        <div class="span6">
            <div class="clearfix">
                <form  class="form-horizontal" name="myform" >
                    <fieldset>

                        <!-- Form Name -->
                        <legend>插入学生信息</legend>

                        <!-- Text input-->
                        <div class="control-group">
                            <label class="control-label" for="stuNo">学号</label>
                            <div class="controls">
                                <input id="stuNo" name="stuNo" type="text" placeholder="学号" class="input-xlarge">

                            </div>
                        </div>

                        <!-- Text input-->
                        <div class="control-group">
                            <label class="control-label" for="stuName">姓名</label>
                            <div class="controls">
                                <input id="stuName" name="stuName" type="text" placeholder="姓名" class="input-xlarge">

                            </div>
                        </div>

                        <!-- Select Basic -->
                        <div class="control-group">
                            <label class="control-label" for="sex">性别</label>
                            <div class="controls">
                                <select id="sex" name="sex" class="input-xlarge">
                                    <option>男</option>
                                    <option>女</option>
                                </select>
                            </div>
                        </div>

                        <!-- Text input-->
                        <div class="control-group">
                            <label class="control-label" for="class">班级</label>
                            <div class="controls">
                                <input id="class" name="class" type="text" placeholder="班级" class="input-xlarge">

                            </div>
                        </div>

                        <!-- Password input-->
                        <div class="control-group">
                            <label class="control-label" for="password">密码</label>
                            <div class="controls">
                                <input id="password" name="password" type="password" placeholder="password" class="input-xlarge">

                            </div>
                        </div>

                        <!--IDcard input-->
                        <div class="control-group">
                            <label class="control-label" for="idcard">班级</label>
                            <div class="controls">
                                <input id="idcard" name="idcard" type="text" placeholder="id" class="input-xlarge">

                            </div>
                        </div>

                        <!-- Button -->
                        <div class="control-group">

                            <div class="controls">
                                <button type="submit" class="btn btn-primary" onclick="selecta()" >查看列表</button>
                            </div>
                        </div>

                        <!-- Button (Double) -->
                        <div class="control-group">

                            <div class="controls">
                                <button type="submit" value="submit" class="btn btn-primary" onclick="insert()">确认</button>

                            </div>
                        </div>

                    </fieldset>
                </form>


            </div>
            </div>
        </div>
        <!-- / Building Form. -->

        <!-- Components -->

        <!-- / Components -->

    </div>



</div> <!-- /container -->

<script data-main="assets/js/main-built.js" src="assets/js/lib/require.js" ></script>

</body>
</html>
